package com.chennan.algorithm.leetcode.eleven;

/**
 * @author chennan
 * @create 2021-11
 *
 *   public class ListNode {
 *     int val;
 *     ListNode next;
 *     ListNode(int x) { val = x; }
 *   }
 */
public class DeleteNode {
    public static void main(String[] args) {

    }
    public void deleteNode(ListNode node) {
        ListNode listNode1 = node.next;
        ListNode next = listNode1.next;
        node.val = listNode1.val;
        node.next = next;
    }

}
